#include <cstdio>
#include <cstring>
#include <cstdlib>
using namespace std;

#define NUMBER_LENGTH 20

void CleanNumber(char[], int);

int main()
{
    char a[NUMBER_LENGTH], b[NUMBER_LENGTH];
    while (scanf(" %s %s", a, b) != EOF) {
        CleanNumber(a, strlen(a));
        CleanNumber(b, strlen(b));    
        // printf("%s %s\n", a, b);
        printf("%d\n", atoi(a) + atoi(b));
    }

    return 0;
}

void CleanNumber(char x[], int len)
{
    int offset = 0;
    for (int i = 0; i < len + 1; i++) {
        if (x[i] != ',') {
            offset++;
            x[offset - 1] = x[i];
        }
    }
}
